package leetcode.code0407;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution407 implements IDebug {

	public abstract int trapRainWater(int[][] heightMap);

	@Override
	public void debug1() {
		String str = "[[1,4,3,1,3,2],[3,2,1,3,2,4],[2,3,3,2,3,1]]";
		int[][] heightMap = HelpDebug.str2array1(str);
		int r = this.trapRainWater(heightMap);
		int e = 4;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str = "[[3,3,3,3,3],[3,2,2,2,3],[3,2,1,2,3],[3,2,2,2,3],[3,3,3,3,3]]";
		int[][] heightMap = HelpDebug.str2array1(str);
		int r = this.trapRainWater(heightMap);
		int e = 10;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
